﻿using System;
using System.Collections.Generic;
using System.Text;


public class SoldierCaptive : ISoldier
{
    private IEnemy mEnemy;

    public SoldierCaptive(IEnemy enemy)
    {
        mEnemy = enemy;
        // 战士用敌人的策略不会有问题吗???
        ICharacterAttr attr = new SoldierAttr(enemy.attr.strategy, 1, enemy.attr.baseAttr);
        this.attr = attr;
        this.gameObject = mEnemy.gameObject;
        this.weapon = mEnemy.weapon;
    }
    protected override void PlayEffect()
    {
        // 播放CaptainDeadEffect效果
        DoPlayEffect("CaptainDeadEffect");
    }
    protected override void PlaySound()
    {
        //Do nothing
    }
}